﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Copad.BusinessCard.BLL;

public partial class UserList : BusinessCardPageBase
{
    GroupBLL groupBLL = new GroupBLL();

    protected string AllGroups = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        var groups = groupBLL.Get();
        groups.ForEach(x =>
        {
            AllGroups += x.Name + ":" + x.ID + ",";
        });
        if (AllGroups != "")
        {
            AllGroups = AllGroups.Remove(AllGroups.Length - 1);
        }
    }
}